package com.lovejes.wloppor.domain.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the T_BUSS_FLOWINFO table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="T_BUSS_FLOWINFO"
 */

public abstract class BaseTBussFlowinfo  implements Serializable {

	public static String REF = "TBussFlowinfo";
	public static String PROP_WORKID = "Workid";
	public static String PROP_OPPORID = "Opporid";
	public static String PROP_FLOWSTATUS = "Flowstatus";
	public static String PROP_RECORDTIME = "Recordtime";
	public static String PROP_USERID = "Userid";
	public static String PROP_FLOWINFO = "Flowinfo";
	public static String PROP_ID = "Id";


	// constructors
	public BaseTBussFlowinfo () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseTBussFlowinfo (java.lang.String id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.String id;

	// fields
	private java.lang.String opporid;
	private java.lang.String workid;
	private java.lang.String userid;
	private java.lang.String flowstatus;
	private java.lang.String flowinfo;
	private java.util.Date recordtime;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="uuid"
     *  column="ID"
     */
	public java.lang.String getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.String id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: OPPORID
	 */
	public java.lang.String getOpporid () {
		return opporid;
	}

	/**
	 * Set the value related to the column: OPPORID
	 * @param opporid the OPPORID value
	 */
	public void setOpporid (java.lang.String opporid) {
		this.opporid = opporid;
	}



	/**
	 * Return the value associated with the column: WORKID
	 */
	public java.lang.String getWorkid () {
		return workid;
	}

	/**
	 * Set the value related to the column: WORKID
	 * @param workid the WORKID value
	 */
	public void setWorkid (java.lang.String workid) {
		this.workid = workid;
	}



	/**
	 * Return the value associated with the column: USERID
	 */
	public java.lang.String getUserid () {
		return userid;
	}

	/**
	 * Set the value related to the column: USERID
	 * @param userid the USERID value
	 */
	public void setUserid (java.lang.String userid) {
		this.userid = userid;
	}



	/**
	 * Return the value associated with the column: FLOWSTATUS
	 */
	public java.lang.String getFlowstatus () {
		return flowstatus;
	}

	/**
	 * Set the value related to the column: FLOWSTATUS
	 * @param flowstatus the FLOWSTATUS value
	 */
	public void setFlowstatus (java.lang.String flowstatus) {
		this.flowstatus = flowstatus;
	}



	/**
	 * Return the value associated with the column: FLOWINFO
	 */
	public java.lang.String getFlowinfo () {
		return flowinfo;
	}

	/**
	 * Set the value related to the column: FLOWINFO
	 * @param flowinfo the FLOWINFO value
	 */
	public void setFlowinfo (java.lang.String flowinfo) {
		this.flowinfo = flowinfo;
	}



	/**
	 * Return the value associated with the column: RECORDTIME
	 */
	public java.util.Date getRecordtime () {
		return recordtime;
	}

	/**
	 * Set the value related to the column: RECORDTIME
	 * @param recordtime the RECORDTIME value
	 */
	public void setRecordtime (java.util.Date recordtime) {
		this.recordtime = recordtime;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.lovejes.wloppor.domain.TBussFlowinfo)) return false;
		else {
			com.lovejes.wloppor.domain.TBussFlowinfo tBussFlowinfo = (com.lovejes.wloppor.domain.TBussFlowinfo) obj;
			if (null == this.getId() || null == tBussFlowinfo.getId()) return false;
			else return (this.getId().equals(tBussFlowinfo.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}